<template>
    <div>
      <parent-component></parent-component>
    </div>
  </template>
  
  <script>
import ParentComponent from './ParentComponent.vue'
  export default {
    data() {
        return {
        message: '祖父、父、子组件之间使用Provide/Inject传递数据'
        }
    },
    provide() {
        return {
          message: this.message
        }
    },
    components:{ParentComponent}
  }
  </script>
  